Optimal. Leaf size=97 \[ \frac {a \sin ^5(c+d x)}{5 d}+\frac {b \sin ^6(c+d x)}{6 d}-\frac {2 a \sin ^7(c+d x)}{7 d}-\frac {b \sin ^8(c+d x)}{4 d}+\frac {a \sin ^9(c+d x)}{9 d}+\frac {b \sin ^{10}(c+d x)}{10 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2916, 12, 780}
\begin {gather*} \frac {a \sin ^9(c+d x)}{9 d}-\frac {2 a \sin ^7(c+d x)}{7 d}+\frac {a \sin ^5(c+d x)}{5 d}+\frac {b \sin ^{10}(c+d x)}{10 d}-\frac {b \sin ^8(c+d x)}{4 d}+\frac {b \sin ^6(c+d x)}{6 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 780
Rule 2916
Rubi steps
\begin {align*} \int \cos ^5(c+d x) \sin ^4(c+d x) (a+b \sin (c+d x)) \, dx &=\frac {\text {Subst}\left (\int \frac {x^4 (a+x) \left (b^2-x^2\right )^2}{b^4} \, dx,x,b \sin (c+d x)\right )}{b^5 d}\\ &=\frac {\text {Subst}\left (\int x^4 (a+x) \left (b^2-x^2\right )^2 \, dx,x,b \sin (c+d x)\right )}{b^9 d}\\ &=\frac {\text {Subst}\left (\int \left (a b^4 x^4+b^4 x^5-2 a b^2 x^6-2 b^2 x^7+a x^8+x^9\right ) \, dx,x,b \sin (c+d x)\right )}{b^9 d}\\ &=\frac {a \sin ^5(c+d x)}{5 d}+\frac {b \sin ^6(c+d x)}{6 d}-\frac {2 a \sin ^7(c+d x)}{7 d}-\frac {b \sin ^8(c+d x)}{4 d}+\frac {a \sin ^9(c+d x)}{9 d}+\frac {b \sin ^{10}(c+d x)}{10 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.23, size = 94, normalized size = 0.97 \begin {gather*} \frac {-3150 b \cos (2 (c+d x))+525 b \cos (6 (c+d x))-63 b \cos (10 (c+d x))+7560 a \sin (c+d x)-1680 a \sin (3 (c+d x))-1008 a \sin (5 (c+d x))+180 a \sin (7 (c+d x))+140 a \sin (9 (c+d x))}{322560 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.43, size = 120, normalized size = 1.24
method | result | size |
risch | \(\frac {3 a \sin \left (d x +c \right )}{128 d}-\frac {b \cos \left (10 d x +10 c \right )}{5120 d}+\frac {a \sin \left (9 d x +9 c \right )}{2304 d}+\frac {a \sin \left (7 d x +7 c \right )}{1792 d}+\frac {5 b \cos \left (6 d x +6 c \right )}{3072 d}-\frac {a \sin \left (5 d x +5 c \right )}{320 d}-\frac {a \sin \left (3 d x +3 c \right )}{192 d}-\frac {5 b \cos \left (2 d x +2 c \right )}{512 d}\) | \(119\) |
derivativedivides | \(\frac {a \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{9}-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{21}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{105}\right )+b \left (-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{10}-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{20}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{60}\right )}{d}\) | \(120\) |
default | \(\frac {a \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{9}-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{21}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{105}\right )+b \left (-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{10}-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{20}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{60}\right )}{d}\) | \(120\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 72, normalized size = 0.74 \begin {gather*} \frac {126 \, b \sin \left (d x + c\right )^{10} + 140 \, a \sin \left (d x + c\right )^{9} - 315 \, b \sin \left (d x + c\right )^{8} - 360 \, a \sin \left (d x + c\right )^{7} + 210 \, b \sin \left (d x + c\right )^{6} + 252 \, a \sin \left (d x + c\right )^{5}}{1260 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 95, normalized size = 0.98 \begin {gather*} -\frac {126 \, b \cos \left (d x + c\right )^{10} - 315 \, b \cos \left (d x + c\right )^{8} + 210 \, b \cos \left (d x + c\right )^{6} - 4 \, {\left (35 \, a \cos \left (d x + c\right )^{8} - 50 \, a \cos \left (d x + c\right )^{6} + 3 \, a \cos \left (d x + c\right )^{4} + 4 \, a \cos \left (d x + c\right )^{2} + 8 \, a\right )} \sin \left (d x + c\right )}{1260 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.78, size = 136, normalized size = 1.40 \begin {gather*} \begin {cases} \frac {8 a \sin ^{9}{\left (c + d x \right )}}{315 d} + \frac {4 a \sin ^{7}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{35 d} + \frac {a \sin ^{5}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{5 d} - \frac {b \sin ^{4}{\left (c + d x \right )} \cos ^{6}{\left (c + d x \right )}}{6 d} - \frac {b \sin ^{2}{\left (c + d x \right )} \cos ^{8}{\left (c + d x \right )}}{12 d} - \frac {b \cos ^{10}{\left (c + d x \right )}}{60 d} & \text {for}\: d \neq 0 \\x \left (a + b \sin {\left (c \right )}\right ) \sin ^{4}{\left (c \right )} \cos ^{5}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.57, size = 118, normalized size = 1.22 \begin {gather*} -\frac {b \cos \left (10 \, d x + 10 \, c\right )}{5120 \, d} + \frac {5 \, b \cos \left (6 \, d x + 6 \, c\right )}{3072 \, d} - \frac {5 \, b \cos \left (2 \, d x + 2 \, c\right )}{512 \, d} + \frac {a \sin \left (9 \, d x + 9 \, c\right )}{2304 \, d} + \frac {a \sin \left (7 \, d x + 7 \, c\right )}{1792 \, d} - \frac {a \sin \left (5 \, d x + 5 \, c\right )}{320 \, d} - \frac {a \sin \left (3 \, d x + 3 \, c\right )}{192 \, d} + \frac {3 \, a \sin \left (d x + c\right )}{128 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 71, normalized size = 0.73 \begin {gather*} \frac {\frac {b\,{\sin \left (c+d\,x\right )}^{10}}{10}+\frac {a\,{\sin \left (c+d\,x\right )}^9}{9}-\frac {b\,{\sin \left (c+d\,x\right )}^8}{4}-\frac {2\,a\,{\sin \left (c+d\,x\right )}^7}{7}+\frac {b\,{\sin \left (c+d\,x\right )}^6}{6}+\frac {a\,{\sin \left (c+d\,x\right )}^5}{5}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________